package com.qianji.petmall.authserver.feign;

import com.qianji.common.to.GiteeUserVo;
import com.qianji.common.utils.R;
import com.qianji.petmall.authserver.vo.UserLoginVo;
import com.qianji.petmall.authserver.vo.UserRegisVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author liang zai
 * @date 2022/3/29 16:10
 * @description
 */
@FeignClient("petmall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regis")
    R regisVo(@RequestBody UserRegisVo memberRegisVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(@RequestBody GiteeUserVo giteeUserVo) throws Exception;
}
